// webpack --config webpack.conf.js
const path = require('path');

module.exports = {
  mode: 'development',  // production 会压缩代码
	entry: {
		app: './src/app.ts'
	},
	output: {
    // path: path.resolve(__dirname, 'dist'),  // 默认为./dist
		filename: '[name].bundle.js'
	},
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        loader: 'ts-loader',
      }
    ]
  }
}